﻿{% extends "layout.html" %}

{%block extra_js %}
{% endblock %}

{% block content %}
<div class="span-24 last">
    <div class="Section">
        <div class="SectionHeading">
            Clubes
            <div class="SectionHeadingMenu">
                <a href="{% url add_club %}">Alta de clubes</a> | <a href="">Buscar</a>
            </div>
        </div>
        {% if object_list %}
	        <div class="SectionContent">
	            <table class="DataTable">
	                <tr>
	                    <th>Club</th>
	                    <th>Direccion</th>
	                    <th>Ciudad</th>
	                    <th>Email</th>
	                    <th>Telefono</th>
	                </tr>
	                {% for club in object_list %}
	                <tr>
	                    <td><a href="{{ club.get_absolute_url }}">{{ club.club_name }}</a></td>
	                    <td>{{ club.address }}</td>
	                    <td>{{ club.zip_code }}</td>
	                    <td>{{ club.email }}</td>
	                    <td>{{ club.phone }}</td>
	                </tr>
	                {% endfor %}
	            </table>
	            <div class="PaginationWidget">
	                <ul>
	                    <li><a href="#">&lt;&lt;</a></li>
	                    <li><a href="#">1</a></li>
	                    <li><a href="#">2</a></li>
	                    <li><a href="#" class="selected">3</a></li>
	                    <li><a href="#">&gt;&gt;</a></li>
	                </ul>
	            </div>
	        </div>
        {% endif %}
    </div>
</div>
{% endblock %}
